<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% 
	int length;
	String pwdLenInfo = "";
	String pwdNumInfo = "";
	String pwdErrInfo = "";
	String q;
	q = (String)request.getAttribute("q");
		if(q==null)
		{
			System.out.print("q为空");
		}
		System.out.print(q);
		length = q.length();
		if(length < 6)
		{
			pwdLenInfo = "密码长度太短   ";
		}
		for(int i = 0;i < length;i++)
		{
			if(q.charAt(i) > '0' && q.charAt(i) < '9')
			{
				pwdNumInfo = "密码请不要设置为纯数字！";
			}
		}
		pwdErrInfo = pwdLenInfo+pwdNumInfo;
		System.out.print(pwdErrInfo);
		out.print(pwdErrInfo);
%>
